import base from './base'
import StartNode from './startNode.vue'

class StartNodeView extends base.view {
	constructor(props) {
		super(props, StartNode)
	}



}

class StartNodeModel extends base.model {


	setAttributes() {
		this.text.editable = false; // 禁止节点文本编辑
		// 设置节点宽高和锚点
		const width = 60;
		const height = 60;
		this.width = width;
		this.height = height;
		// this.anchorsOffset = [[width / 2, 0], [0, height / 2], [-width / 2, 0], [0, -height / 2],];
	}

	showCopyNodeIcon() {
		return false;
	}

	static instanceNode(name) {
		name = name.toLowerCase();
		return name == 'jsoninput'||name=='startworkflow';
	}

}

export default {
	type: 'start-node',
	model: StartNodeModel,
	view: StartNodeView
}
